package com.tb.pojo;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

public class Goods implements Serializable {
    private String goodsId;

    private String goodsName;

    private Float goodsPrice;

    private Integer goodsNum;

    private Integer goodsKind;

    private Float goodsWeight;

    private Integer goodsSold;

    private Integer goodsComments;

    private Integer goodsType;

    private Float goodsDiscount;
    /************图片********************/
    private String img;
    private List<String> imgs = new ArrayList<String>();

    public String getImg() {
        return img;
    }

    public void setImg(String img) {
        this.img = img;
    }

    public List<String> getImgs() {
        return imgs;
    }

    public void setImgs(List<String> imgs) {
        this.imgs = imgs;
    }
    /**************排序**************/
    private String orderField;//排序列
    private String orderType;//排序规则,升降序

    public String getOrderField() {
        if (orderField==null || "".equals(orderField)){
            orderField="goods_id";
        }
        return orderField;
    }

    public void setOrderField(String orderField) {
        this.orderField = orderField;
    }

    public String getOrderType() {
        if (orderType==null || "".equals(orderType)){
            orderType="desc";
        }
        return orderType;
    }

    public void setOrderType(String orderType) {
        this.orderType = orderType;
    }

    private List<Comments> listComments;

    private List<ShopParam> listShopParam;

    public String getGoodsId() {
        return goodsId;
    }

    public void setGoodsId(String goodsId) {
        this.goodsId = goodsId == null ? null : goodsId.trim();
    }

    public String getGoodsName() {
        return goodsName;
    }

    public void setGoodsName(String goodsName) {
        this.goodsName = goodsName == null ? null : goodsName.trim();
    }

    public Float getGoodsPrice() {
        return goodsPrice;
    }

    public void setGoodsPrice(Float goodsPrice) {
        this.goodsPrice = goodsPrice;
    }

    public Integer getGoodsNum() {
        return goodsNum;
    }

    public void setGoodsNum(Integer goodsNum) {
        this.goodsNum = goodsNum;
    }

    public Integer getGoodsKind() {
        return goodsKind;
    }

    public void setGoodsKind(Integer goodsKind) {
        this.goodsKind = goodsKind;
    }

    public Float getGoodsWeight() {
        return goodsWeight;
    }

    public void setGoodsWeight(Float goodsWeight) {
        this.goodsWeight = goodsWeight;
    }

    public Integer getGoodsSold() {
        return goodsSold;
    }

    public void setGoodsSold(Integer goodsSold) {
        this.goodsSold = goodsSold;
    }

    public Integer getGoodsComments() {
        return goodsComments;
    }

    public void setGoodsComments(Integer goodsComments) {
        this.goodsComments = goodsComments;
    }

    public Integer getGoodsType() {
        return goodsType;
    }

    public void setGoodsType(Integer goodsType) {
        this.goodsType = goodsType;
    }

    public Float getGoodsDiscount() {
        return goodsDiscount;
    }

    public void setGoodsDiscount(Float goodsDiscount) {
        this.goodsDiscount = goodsDiscount;
    }

    // 新增-宁
    public List<Comments> getListComments() {
        return listComments;
    }

    public void setListComments(List<Comments> listComments) {
        this.listComments = listComments;
    }
    //dfh
    public Goods() {
    }

    public Goods(String goodsId, String goodsName, Float goodsPrice, Integer goodsKind, Float goodsWeight, Float goodsDiscount) {
        this.goodsId = goodsId;
        this.goodsName = goodsName;
        this.goodsPrice = goodsPrice;
        this.goodsKind = goodsKind;
        this.goodsWeight = goodsWeight;
        this.goodsDiscount = goodsDiscount;
    }

    // 新增-宁
    public List<ShopParam> getListShopParam() {
        return listShopParam;
    }

    public void setListShopParam(List<ShopParam> listShopParam) {
        this.listShopParam = listShopParam;
    }

    @Override
    public String toString() {
        return "Goods{" +
                "goodsId='" + goodsId + '\'' +
                ", goodsName='" + goodsName + '\'' +
                ", goodsPrice=" + goodsPrice +
                ", goodsNum=" + goodsNum +
                ", goodsKind=" + goodsKind +
                ", goodsWeight=" + goodsWeight +
                ", goodsSold=" + goodsSold +
                ", goodsComments=" + goodsComments +
                ", goodsType=" + goodsType +
                ", goodsDiscount=" + goodsDiscount +
                ", img='" + img + '\'' +
                ", imgs=" + imgs +
                ", listComments=" + listComments +
                ", listShopParam=" + listShopParam +
                '}';
    }
}